package com.java.demo.dao;

import com.java.demo.model.User;
import org.springframework.stereotype.Repository;

@Repository
public class UserRepository {


    //伪代码
    public User getUser(){
        User user = new User();
        user.setId(1);
        user.setName("王五");
        return user;
    }

}
